﻿@{
    ViewBag.Title = "显示排样方案";
    Layout = "~/Views/Shared/_ManufactureList.cshtml";
}
<link href="~/Content/css/common.css" rel="stylesheet" />
<link href="~/Content/css/BlankingcardAdd.css" rel="stylesheet" />
<style type="text/css">
    .tool_c {
        padding: 10px 0;
    }

    .btn-group {
        padding: 0 10px 0 0;
    }

   
</style>
<script>
    $(function () {
        Index.init();
    });

    var Index = {
        jsonData:@Html.Raw(ViewData["jsonData"].ToString()),
        init: function () {
            with (Index) {
                loadData();
                initControl();
                console.log(Index.jsonData);
            }
        },
        initControl: function () {
            $("#butnBack").on("click", function () {
                $.goBack();
            })
        },
        loadData: function () {
            for(var idx in Index.jsonData){
                $("#{0}".format(idx)).val(Index.jsonData[idx]);
            }
        }
    };



</script>
<div class="layout" id="layout" style="height: 100%; width: 100%;">
    <h1>显示排样方案</h1>
    <header>
        <section class="container">
            <div class="row">
                <div class="col-md-2">
                    <label>零件编号</label>
                    <input id="FProductionNO"  name="" placeholder="" type="text" class="form-control required"  readonly="readonly"/>
                </div>
                <div class="col-md-3">
                    <label>零件名称</label>
                    <input id="FProductionName" readonly="readonly" name="" placeholder="" type="text" class="form-control required"/>
                </div>
                <div class="col-md-1">
                    <label>纤维方向</label>
                    <input id="FiberDirection" readonly="readonly" name="" placeholder="" type="text" class="form-control required"/>
                </div>
                <div class="col-md-3">
                    <label>毛坯尺寸</label>
                    <input id="RoughsSize" name="" placeholder="" type="text" class="form-control required"  readonly="readonly"/>
                </div>
                <div class="col-md-1">
                    <label>宽度公差</label>
                    <input id="KFZGC" name="" placeholder="" type="text" class="form-control required"  readonly="readonly"/>
                </div>
                <div class="col-md-1">
                    <label>长度公差</label>
                    <input id="CZFGC" name="" placeholder="" type="text" class="form-control required"  readonly="readonly"/>
                </div>
                <div class="col-md-2">
                    <label>材料规格</label>
                    <input id="MaterialSizes_SJBL"  readonly="readonly" name="" placeholder="厚度*宽度*长度" type="text" class="form-control required" />
                </div>
                <div class="col-md-2">
                    <label>开卷尺寸</label>
                    <input id="MaterialSizes_K1"  readonly="readonly" name="" placeholder="厚度*宽度*长度" type="text" class="form-control required" />
                </div>
                <div class="col-md-2">
                    <label>剪切规格</label>
                    <input id="MaterialSizes_J"  readonly="readonly" name="" placeholder="宽度*长度" type="text" class="form-control required" />
                </div>
                <div class="col-md-1  line_input">
                    <label>一张板切</label>
                    <input id="FYZJK" name=""  readonly="readonly" placeholder="" type="text" class="form-control required" /><label>块</label>
                </div>
                <div class="col-md-1 line_input">
                    <label>一块板切</label>
                    <input id="FYKJJ" name="" readonly="readonly" placeholder="" type="text" class="form-control required" /><label>个零件</label>
                </div>
                <div class="col-md-1 line_input">
                    <label>一张板切</label>
                    <input id="KZLJ" name="" readonly="readonly" placeholder="" type="text" class="form-control required" /><label>个零件</label>
                </div>
            </div>
        </section>
        <aside>
            <div class="btn-group">
                <a id="butnBack" class="btn btn-primary center-block i1 i12"><span class="glyphicon glyphicon-print"></span>返回</a>
            </div>
        </aside>
    </header>
    <div class="draw_area">
            <img src="/BOM/Blankingcard/GetPreferredPicture?id=@ViewData["id"].ToString()" alt="card" title="card" />
    </div>
</div>
